import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Self_drive from '../views/Self_drive'
import Car_search from '../views/Car_search'
import Car_store from '../views/Car_store'
import Car_share from '../views/Car_share'
import Self_center from '../views/Self_center'
import Order_manage from '../views/Order_manage'
<<<<<<< HEAD
import Complain from '../views/Complain'
=======
import Complain from '../views/Compain'
>>>>>>> c08a2c9afaf2d3b270a8ee3abf17b8f918215c8e
import Money from '../views/Money'
import Receipt from '../views/Receipt'
import Score from '../views/Score'
import Traffic from '../views/Traffic'
<<<<<<< HEAD
=======
import User_info from '../views/User_info'
>>>>>>> c08a2c9afaf2d3b270a8ee3abf17b8f918215c8e

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'home',
        component: Home
    },
    {
        path: '/self_drive',
        name: 'self_drive',
        component: Self_drive
    },
    {
        path: '/car_search',
        name: 'car_search',
        component: Car_search
    },
    {
        path: '/car_store',
        name: 'car_store',
        component: Car_store
    },
    {
        path: '/car_share',
        name: 'car_share',
        component: Car_share
    },
    {
        path: '/self_center',
        name: 'self_center',
        component: Self_center
    },
    {
        path: '/order_manage',
        name: 'order_manage',
        component: Order_manage
    },
    {
        path: '/complain',
        name: 'complain',
        component: Complain,
    },
    {
        path: '/money',
        name: 'money',
        component: Money,
    },
    {
        path: '/score',
        name: 'score',
        component: Score,
    },
    {
<<<<<<< HEAD
=======
        path: '/user_info',
        name: 'user_info',
        component: User_info,
    },
    {
>>>>>>> c08a2c9afaf2d3b270a8ee3abf17b8f918215c8e
        path: '/receipt',
        name: 'receipt',
        component: Receipt,
    },
    {
        path: '/traffic',
        name: 'traffic',
        component: Traffic,
    },
];

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
